package be.kuleuven.mume.exceptions;

public class UserNotLoggedInException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2404272726156705774L;
	public String loginUrl;
	
	public UserNotLoggedInException(String loginUrl){
		this.loginUrl = loginUrl;
	}
	
	public String toJsonString() {
		return "{\"error\": \"User is not logged in!\", \"link\": \"" + loginUrl + "\"}";
	}
}
